<template>
	<view class="my-container">
		<!-- <my-login v-if="!token"></my-login> -->
		<my-login v-if="!token"></my-login>
		<my-userinfo v-else :change='change'></my-userinfo>
	</view>
</template>

<script>
	import{mapState} from 'vuex'
	export default {
		data() {
			return {
				change:0
			};
		},
		computed:{
			...mapState('m_user',['token'])
		},
		methods:{
			sendmessage(){
				this.change+=1
			}
		},
		onShow(){
			this.sendmessage()	
			},	
				
	}
</script>

<style lang="scss">
page,.my-container{
	height: 100%;
}
</style>